<%@ include file="/WEB-INF/common/taglibs.jsp"%>
           
           	   <c:set var="theCommunity"><gameOfGhost:session attribute="userProfile.communities.0.name"/></c:set>
           	   
           	   <c:if test="${empty theCommunity}">
           	   		<c:set var="theCommunity"><spring:message code="userWithoutCommunity"/></c:set>	
           	   </c:if>
           
               <script type="text/javascript">

                var _gaq = _gaq || [];
                _gaq.push(['_setAccount', '<gameOfGhost:session attribute="googleAnalyticsAccount"/>']);
                _gaq.push(['_trackPageview']);

                _gaq.push(['_setCustomVar',
                           1,  // This custom var is set to slot #1
                           'Colectivo',     // The name acts as a kind of category for the user activity
                           '${theCommunity}',// This value of the custom variable
                           2 // Sets the scope to session-level
                        ]);
                _gaq.push(['_trackEvent',
                           'Visitas por colectivo', // category of activity
                           '${theCommunity}', // Action
                        ]);
  
               (function() {
                  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
               })();
              </script>
           
           <script type="text/javascript">         	
		//--><![CDATA[//><!--
			// $(document).ready(function() {
			// $("#twitter").getTwitter({
			// userName: "<gameOfGhost:session attribute="twitterChannel"/>",
			// numTweets: 1,
			// loaderText: "<spring:message code="header.twitter.loaderText"/>"
			// });
			// });
			 
			// var auto_refresh = setInterval(
			// function ()
			// {
			// $(document).ready(function() {
			// $("#twitter").getTwitter({
			// userName: "<gameOfGhost:session attribute="twitterChannel"/>",
			// numTweets: 1,
			// loaderText: "<spring:message code="header.twitter.loaderText"/>"
			// });
			// });
			// }, <gameOfGhost:session attribute="twitterRefreshTime"/>); //Refresh every 10 seconds

		//--><!]]>
		</script>
                    <div id="logotipo"><a href="<gameOfGhost:url constant="URL_INDEX"/>"><img src="<gameOfGhost:url constant="URL_IMG"/>logotipo.png" alt="<spring:message code="header.title"/>"/></a></div>    
                    <!-- div id="twitter"></div -->
                    <div id="barraHeader">
                        <a href="<gameOfGhost:url constant="URL_SPOT"/>" title="<spring:message code="header.video.title"/>"><img src="<gameOfGhost:url constant="URL_IMG"/>videoHeader.jpg" alt="<spring:message code="header.video.title"/>"/></a>
                        <div id="userLogin">
                            <p><spring:message code="header.welcome"/> 
                                <a href="<gameOfGhost:url constant="URL_USERPROFILE"/>" title="<spring:message code="header.userprofile"/>"><gameOfGhost:session attribute="userProfile.firstName"/> <gameOfGhost:session attribute="userProfile.lastName"/></a> 
                                <a href="<gameOfGhost:url constant="URL_LOGOUT"/>" title="<spring:message code="header.logout"/>">[ <spring:message code="header.logout"/> ]</a>
                                <a href="<gameOfGhost:url constant="URL_DOUBTS"/>" title="<spring:message code="header.doubts"/>"><spring:message code="header.doubts"/></a>
                            </p>
                        </div>
                    </div>
                    
